
<%@ page import="Biblioteca.Exemplar" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       <g:if test="${tipo == 'Admin'}">
     		<meta name="layout" content="adminBiblioteca" />
        </g:if>
        <g:else>
        	<meta name="layout" content="usuarioBiblioteca" />
        </g:else>
     
        <g:set var="entityName" value="${message(code: 'exemplar.label', default: 'Exemplar')}" />
        <title><g:message code="SPL - Visualizando Exemplar" args="[entityName]" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="Dados de Exemplar" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="exemplar.fornecedor.label" default="Fornecedor" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: exemplarInstance, field: "fornecedor")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="exemplar.livro.label" default="Livro" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: exemplarInstance, field: "livro")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="exemplar.dataDeAquisicao.label" default="Data De Aquisicao" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${exemplarInstance?.dataDeAquisicao}" /></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${exemplarInstance?.id}" />
                    <g:if test="${tipo == 'Admin'}">
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'Editar', default: 'Editar')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'Deletar', default: 'Deletar')}" onclick="return confirm('${message(code: 'Voc� tem certeza?', default: 'Voce tem certeza?')}');" /></span>
                	</g:if>
                </g:form>
            </div>
        </div>
    </body>
</html>
